package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallTopicDataMapper;
import org.linlinjava.litemall.db.dao.AgedmallTopicImgMapper;
import org.linlinjava.litemall.db.dao.app.AppHomeMapper;
import org.linlinjava.litemall.db.domain.AgedmallTopicImg;
import org.linlinjava.litemall.db.domain.AgedmallTopicImgExample;
import org.linlinjava.litemall.db.vo.app.StoreGoodsVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class AgedmallTopicImgService {

    @Resource
    private AgedmallTopicImgMapper agedmallTopicImgMapper;

    public AgedmallTopicImg getByType(String type) {
        AgedmallTopicImgExample example = new AgedmallTopicImgExample();
        example.createCriteria().andDeletedEqualTo(false)
                .andTypeEqualTo(type);
        return agedmallTopicImgMapper.selectOneByExample(example);
    }
}
